package bold.deposit;

import bold.deposit.aop.RedisCache;
import bold.storage.util.DateUtil;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class TableService {

    @RedisCache(key = "key1")
    Map<String, String> cache(String id) {
        Map<String, String> map = new HashMap<>();
        map.put("id", id);
        map.put("time", DateUtil.getTime());
        return map;
    }
}
